package com.example.statistics.bean;

import com.jhj.slimadapter.model.BaseTreeModel;

import org.jetbrains.annotations.Nullable;

import java.io.Serializable;
import java.util.ArrayList;

public class ProductTreeBean extends BaseTreeModel<ProductTreeBean> implements Serializable {

    private int id;
    private String productType;
    private String name;
    private String productNo;
    private String specification;
    private String priceTrend;
    private String remark;
    private ArrayList<ProductTreeBean> children;
    private int levels;

    public void setChildren(ArrayList<ProductTreeBean> children) {
        this.children = children;
    }

    private boolean root;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getPriceTrend() {
        return priceTrend;
    }

    public void setPriceTrend(String priceTrend) {
        this.priceTrend = priceTrend;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean isRoot() {
        return root;
    }

    @Override
    public void setRoot(boolean b) {
        this.root = b;
    }

    @Nullable
    @Override
    public ArrayList<ProductTreeBean> getChildren() {
        if (children == null)
            return new ArrayList<ProductTreeBean>();
        return children;
    }

    public int getLevels() {
        return levels;
    }

    public void setLevels(int levels) {
        this.levels = levels;
    }
}
